export default {
  loading: '~/components/loading.vue',
  head: {
    title: "我是默认的标题",
    htmlAttrs: {
      lang: "en",
    },
    meta: [
      { charset: "utf-8" },
      { name: "viewport", content: "width=device-width, initial-scale=1" },
      { hid: "keywords", name: "keywords", content: "我是默认的全局关键词" },
      { hid: "description", name: "description", content: "我是默认的全局描述" }
    ],
    link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
  },
  css: ["~assets/css/reset.scss", "element-ui/lib/theme-chalk/index.css"],
  styleResources: {
    scss: ["~/assets/css/color.scss", "~assets/css/variables.scss"],
  },
  // router: {
  //   middleware: "i18n",
  // },
  plugins: [
    "~/plugins/elementUI",
    { src: "~/plugins/store"},
    '~/plugins/axios',
    '~/api/index',
  ],
  components: true,
  buildModules: [],
  // nuxtjs/style-resources sass全局变量配置插件
  modules: ["@nuxtjs/axios", '@nuxtjs/style-resources', 'cookie-universal-nuxt'],
  axios: {
    // 配置axios的基本URL
    baseURL: 'http://127.0.0.1:8888',
  },
  build: {
    extractCSS: { allChunks: true }
  }
};
